package model

import "time"

type ConfigModel struct {
	Id        int       `json:"id" gorm:"type:int(11) auto_increment; NOT NULL; primary_key"`
	Title     string    `json:"title" gorm:"type:varchar(255)"`
	Key       string    `json:"key" gorm:"type:varchar(255)"`
	Value     string    `json:"value" gorm:"type:varchar(255)"`
	CreatedAt time.Time `json:"created_at" gorm:"type:timestamp"`
	UpdatedAt time.Time `json:"updated_at" gorm:"type:timestamp"`
}

func (ConfigModel) TableName() string {
	return "config"
}
